﻿using System;
using Gammar.Price.Business;
using Gammar.Price.ObjectModel;
using System.Globalization;

public partial class UserControls_NavigationBar : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string guid = this.Request["cid"];
        if (string.IsNullOrEmpty(guid)) return;

        try
        {
            Sp_CategoryEntity entity = CategoryLogic.RetrieveCategoryByGuid(new Guid(guid));
            if (entity != null)
            {
                CategoryName = entity.Cat_Name;
                HomePage = entity.CClass_Name;
            }
        }
        catch
        {

        }
    }

    private string _categoryName;
    protected string CategoryName { get { return _categoryName; } set { _categoryName = value; } }

    private string _homePage;
    protected string HomePage { get { return _homePage; } set { _homePage = value; } }

    private string _itemName;
    protected string ItemName { get { return _itemName; } }
}
